package com.example.library.model;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: asus
 * Date: 2024-12-20
 * Time: 17:34
 */
@Data
public class PageRequest {
    private Integer currentPage=1;
    private Integer pageSize=10;
    private Integer offset;
    public Integer getOffset() {
        return (currentPage - 1)*pageSize;
    }
}
